workspace "rnnoise"
	configurations { "Debug", "Release" }
	platforms { "Win32","Linux" }
	location "build"
	
	
filter { "platforms:Win32" }
    system "windows"
    architecture "x32"
	defines { "_WIN32", "WIN32" ,"KLIB_EXPORTS"}
	
filter { "platforms:Linux" }
    system "linux"
    architecture "x64"	
	defines { "LINUX", "linux" ,"POSIX"}

filter "configurations:Debug"
	defines { "DEBUG" , "_DEBUG"}
	symbols "On"
	optimize "Debug"
	
filter "configurations:Release"
	defines { "NDEBUG" }
	symbols "Off"
	optimize "Speed"
	vectorextensions "SSE2"	
	
project "rnnoise"
	kind "StaticLib"
	language "C"
	pic "On"
	files{
		"include/*.h",
		"src/**.h",
		"src/*.c",
	}
	
	includedirs{
		"include",
	}
	
project "example"
	kind "ConsoleApp"
	language "C++"

	files{
		"examples/*.c",
	}

	includedirs{
		"include",
	}
	links{
		"rnnoise"
	}
